/*
 * FileTesterClass.java
 *
 * Created on February 5, 2007, 11:59 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.jmonkey.export;

import java.io.File;

/**
 *
 * @author akaspar
 */
public class FileTesterClass {
    
    /** Creates a new instance of FileTesterClass */
    public FileTesterClass() {
    }
    
    public static final void main (String[] args){
        File thisIsAFile = new File ("/Users/akaspar/notADir.txt");
        
        System.out.println("file exists: " + thisIsAFile.exists());
        File directory = new File ("/Users/akaspar/notADir.txt");
        if (!directory.isDirectory()) {
          System.out.println("Trying to mkdirs");
          directory.mkdirs();
        }
        System.out.println("file is now a directory: " + thisIsAFile.isDirectory());
        System.out.println("directory is now a directory: " + directory.isDirectory());
        
    }
    
}
